<?php
namespace wing;

use wing\lib\route;

class base
{

    //映射类
    static public $classMap = array();

    /**
     * zwc
     * 程序运行
     */
    static public function run()
    {

        dd('ok');

        $route = new route();
    }

    /**
     * zwc
     * 自动加载类
     */
    static public function load($class)
    {
        if(isset(self::$classMap[$class])){
            return true;
        }else{
            $class = str_replace('\\','/',$class);
            $file = PEP_PATH .'/'. $class . '.php';
            if(is_file($file)){
                include $file;
                self::$classMap[$class] = $class;
            }else{
                return false;
            }
        }
    }
}
